package com.lupus.persistence;

import java.sql.*;
import java.util.*;

import com.lupus.persistence.sql.SqlGenerator;

public class OtherPersistence extends Persistence{
	public List<Map> operate(Map<String,Object> actionMap,Connection connection)throws SQLException{
		Statement statemnet = null;
		String sql = SqlGenerator.getSqlGenerator().createSql(actionMap);
		try{
			statemnet = connection.createStatement();
			statemnet.execute(sql);
			return new ArrayList<Map>();
		}finally{
			if(statemnet!=null){
				statemnet.close();
			}
		}
	}
}
